<div class="uk-height-1-1">
	<div ng-include="'partials/header_unlogin.html'"></div>
	<div class="uk-vertical-align uk-text-center">
        <div class="uk-vertical-align-middle" style="width: 350px">
            <img src="img/logo.png" class="uk-margin-bottom" style="width: 200px">
            <form name="myForm" class="uk-panel uk-panel-box uk-form" style="padding: 30px" ng-controller="loginCtrl">
                <div class="uk-form-row" ng-class="{'inputMarginBottom':!userNameError}">
                    <input type="text" name="userName" ng-model="userName" placeholder="用户名" class="uk-form-large uk-width-1-1" required ng-maxlength="18" ng-blur="checkUsername()">
                </div>
                <div ng-show="userNameError" style="text-align: left; color: #ff3333" ng-bind="usernameErrorMsg"></div>
                <div class="uk-form-row" ng-class="{'inputMarginBottom':!passwordError}">
                    <input type="password" name="password" ng-model="password" placeholder="密码" class="uk-form-large uk-width-1-1" required ng-maxlength="18" ng-blur="checkPassword()">
                </div>
                <div ng-show="passwordError" style="text-align: left; color: #ff3333" ng-bind="passwordErrorMsg"></div>
                <div class="uk-form-row">
                    <a class="uk-button uk-button-primary uk-button-large uk-margin-top uk-width-1-1" ng-click="login()">登录</a>
                </div>
                <div class="uk-form-row">
                    <a class="uk-button uk-button-success uk-button-large uk-width-1-1" ui-sref="signup">去注册</a>
                </div>
                <div class="uk-form-row">
                    <label class="uk-float-left">
                        <input type="checkbox">记住我</label>
                    <a ui-sref="forget_password" class="uk-float-right uk-link uk-link-muted">忘记密码？</a>
                </div>
            </form>
        </div>
    </div>
</div>